package com.sayyi.jenkins;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class HelloController {

    @GetMapping("/hello/{name}")
    public Object hello(@PathVariable("name") String name) {
        return "hello: " + name;
    }

    @GetMapping("/say/{name}")
    public Object say(@PathVariable("name") String name) {
        return "say: " + name;
    }

}
